import request from '@/utils/request'

// 账号管理
export function fetchList(params) {
  return request({
    url: '/Admins/index',
    method: 'get',
    params
  })
}

export function getInfo(params) {
  return request({
    url: "/Admins/detail",
    method: "get",
    params
  });
}

export function add(data) {
  return request({
    url: "/Admins/add",
    method: "post",
    data
  });
}

export function update(data) {
  return request({
    url: "/Admins/update",
    method: "post",
    data
  });
}

export function remove(data) {
  return request({
    url: "/Admins/delete",
    method: "post",
    data
  });
}
